package cn.highset.modules.base.service;

import cn.highset.base.HighsetBaseService;
import cn.highset.common.vo.SearchVo;
import cn.highset.modules.base.entity.MiniprogramPath;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * 小程序可选跳转页面表接口
 *
 * @author Victor
 */


@CacheConfig(cacheNames = "miniprogramPath")
public interface MiniprogramPathService extends HighsetBaseService<MiniprogramPath, String> {

    /**
     * 多条件分页获取
     *
     * @param miniprogramPath
     * @param searchVo
     * @param pageable
     * @return
     */
    Page<MiniprogramPath> findByCondition(MiniprogramPath miniprogramPath, SearchVo searchVo, Pageable pageable);

    /**
     * 获取全部数据
     *
     * @return
     */
    @Cacheable(key = "'all'")
    List<MiniprogramPath> getAllData();
}
